package com.uriuniv.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.uriuniv.domain.University;

public class UniversityM implements RowMapper {

	public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
			
		University university = new University();
		
		university.setUnivId(rs.getString("UNIV_ID").trim());
		university.setUnivName(rs.getString("UNIV_NAME"));
		university.setRegDate(rs.getTimestamp("REG_DATE"));
		university.setModDate(rs.getTimestamp("MOD_DATE"));
		
		return university;
	}
	
}
